Quantum search for unknown number of target items by hybridizing fixed-point method with trail-and-error method
Li Tan1, 2, Zhang Shuo1, 2, Fu Xiang-Qun1, 2, Wang Xiang1, 2, Wang Yang1, 2, Lin Jie1, 2, Bao Wan-Su1, 2, †
Henan Key Laboratory of Quantum Information and Cryptography, PLA SSF IEU, Zhengzhou 450001, China
Synergetic Innovation Center of Quantum Information and Quantum Physics, University of Science and Technology of China, Hefei 230026, China

 

† Corresponding author. E-mail: bws@qiclab.cn

Project supported by the National Natural Science Foundation of China (Grant Nos. 11504430 and 61502526) and the National Basic Research Program of China (Grant No. 2013CB338002).

Abstract

For the unsorted database quantum search with the unknown fraction λ of target items, there are mainly two kinds of methods, i.e., fixed-point and trail-and-error. (i) In terms of the fixed-point method, Yoder et al. [Phys. Rev. Lett. 113 210501 (2014)] claimed that the quadratic speedup over classical algorithms has been achieved. However, in this paper, we point out that this is not the case, because the query complexity of Yoder’s algorithm is actually in rather than , where λ0 is a known lower bound of λ. (ii) In terms of the trail-and-error method, currently the algorithm without randomness has to take more than 1 times queries or iterations than the algorithm with randomly selected parameters. For the above problems, we provide the first hybrid quantum search algorithm based on the fixed-point and trail-and-error methods, where the matched multiphase Grover operations are trialed multiple times and the number of iterations increases exponentially along with the number of trials. The upper bound of expected queries as well as the optimal parameters are derived. Compared with Yoder’s algorithm, the query complexity of our algorithm indeed achieves the optimal scaling in λ for quantum search, which reconfirms the practicality of the fixed-point method. In addition, our algorithm also does not contain randomness, and compared with the existing deterministic algorithm, the query complexity can be reduced by about 1/3. Our work provides a new idea for the research on fixed-point and trial-and-error quantum search.

1. Introduction

For the unsorted database search, the famous Grover algorithm[1,2] achieves a quadratic speedup over classical algorithms. Afterwards many analyses, generalizations and variants have been investigated.[325] Grover’s algorithm has been proven optimal.[2630] However, the Grover algorithm cannot apply to the case where the fraction λ of target items is completely unknown expect for a lower bound, because iterating too much will pass by the target states, that is the so-called soufflé problem.[31]

For the case of unknown λ, there are mainly two quantum search methods. One is the fixed-point method.[32,33] In Ref. [32], the final state gradually converges to the target states along with the iterations, avoiding “overcooking” the state. However, the algorithm loses the valuable quantum speedup of quantum search,[33] which has also been proven asymptotically optimal.[34,35]

Fortunately, Yoder et al.[33] creatively reduces the “fixed point” to a bounded region of the target states, and claimed that the quadratic speedup over classical search is maintained consequently, which has gained many recognitions.[3638] For example, in Ref. [38], Dalzell et al. pointed out that: “it (Yoder’s algorithm) produces |E⟩ (the uniform superposition over all the target states) with fidelity at least in only time, thus exhibiting the quadratic speedup”, where ω is a known lower bound of the unknown λ. Note that, for consistency, in the following, λ0 instead of ω will be used to denote the lower bound of λ.

However, as stated in Ref. [38], the complexity in the quantum query model[39,40] of Yoder’s algorithm is in rather than , which is dependent on the lower bound λ0 rather than λ. For example, if λ0 = 1/N, while , then , while . As another example, if λ0 = 1/N, while λ = (N − 1)/N, then , while . Therefore, we confirm that the order of query complexity of Yoder’s algorithm is in fact not really optimal (for a detailed complexity analysis of Yoder’s algorithm see Section 2).

Another method for the case of unknown λ is the trial-and-error method.[27,4143] In this regard, the original work was proposed by Boyer et al.,[27] which trials Grover’s algorithm multiple times, where the number of iterations is randomly selected from an exponentially increasing interval along with the number of trials. This randomness enables the average success probability at each trial is always at least 1/4 after the algorithm reaches the critical stage, and a target item can thus be found with an expected number of Grover iterations no more than , but the algorithm is therefore referred to as a randomized application of Grover’s algorithm. Based on this randomized trial-and-error method, replacing the internal Grover’s algorithm[1] by the partial diffusion algorithm[44] or fixed-phase algorithm,[42] Younes et al. proposed two different variants,[41,42] but the number of iterations was not reduced (for details see Table 1 in Section 4).

In order to remove the randomness of trial-and-error algorithms, Okamoto et al.[43] directly set the number of Grover iterations exponentially increasing along with the trials and thus obtained a simpler deterministic trial-and-error algorithm, where the success probability at each trial can often (but not always) be no less than 3/4. This allows the algorithm to find a target state also in the optimal scaling of quantum search. But this also results in more than 1 times iterations or queries than Boyer’s randomized algorithm.

In this paper, we expect to design the first quantum search algorithm that hybridizes the fixed-point method and the trial-and-error method for the case of unknown λ, to confirm that the fixed-point method can also actually achieve the real optimal query complexity by selecting the number of iterations under the trial-and-error method, and confirm that the number of queries of the deterministic trial-and-error quantum search algorithm can be closer to (and even the number of iterations can be fewer than) the randomized versions.

The paper is organized as follows. Section 2 provides an introduction of Yoder’s fixed-point quantum search algorithm as well as an analysis of the query complexity. Section 3 describes our hybrid quantum search algorithm of the fixed-point method and the trial-and-error method. Section 4 discusses the comparisons between the existing algorithms and the algorithm in this paper, which also gives a brief conclusion.

2. Yoder’s algorithm and its query complexity

Yoder’s algorithm[33] aims to overcome the loss of quadratic speedup in the original fixed-point quantum search[32] and avoid the soufflé problem in the original Grover algorithm.[1]

The initial state of Yoder’s algorithm is prepared by applying operator A to the state |0⟩, which can be written as where A = H is the Hadamard transform, |α⟩ (|β⟩) represents the equal superposition of all target (nontarget) states, i.e., where λ = M/N is the fraction of target items, and M is the number of target items in the database of size N.

Yoder’s algorithm performs on |ψ⟩ the following sequence of matched-multiphase Grover operations (referred to as Yoder’s sequence) Here l denotes the number of iterations, is the generalized Grover iteration,[45] ( ) is the selective phase shift, conditionally changing the phase of target states (zero state) by a factor of φ (ϕ), expressed as and the phases {ϕj, φj: 1 ⩽ jl} satisfy the following multiphase matching condition[33] where L = 2l + 1, , δ ∈ (0,1), and TL(x) is the Lth Chebyshev polynomial of the first kind,[46] defined as

The final state of Yoder’s algorithm can be expressed as where PL denotes the success probability, satisfying and for a given L, PL ⩾ 1 − δ2 as long as

Then, for a given λ, to ensure the success probability no less than 1 − δ2, based on Eq. (11), letting ωλ, the following condition of L can be obtained,[33] i.e., which demonstrates the fixed-point property. However, in the case of unknown λ, Lmin is unknown. For this, it is assumed that there exists a known lower bound λ0 of λ.[33] Then, from Eq. (11), letting ωλ0, it follows that Note that L0 is known, because λ0 is known. Therefore, the query complexity of Yoder’s algorithm is actually in , rather than , which is independent on λ and not really optimal. For example, if the lower bound λ0 = 1/N, while (i.e., ), then the order of query complexity of Yoder’s algorithm is , which is actually the same as that of classical search, i.e., , while the algorithm that achieves the real quadratic speedup over classical algorithms should be in .

3. Hybrid fixed-point and trail-and-error quantum search

As described in Section 2, choosing the number of iterations relying on the lower bound λ0 of λ, results in the problem that query complexity of Yoder’s algorithm[33] is not really optimal. In addition, as described in Ref. [43], the existing deterministic trial-and-error algorithm requires more than 1 times iterations than the randomized version,[27] due to the success probability of the original Grover algorithm[1] oscillates intensively about λ. We expect to handle these problems by hybridizing the fixed-point method with the trial-and-error method, that is, we trials Yoder’s sequence (defined by Eq. (4)) multiple times and exponentially increase the number of iterations. At this time, the condition Eq. (12) of λ, rather than Eq. (13) of λ0, could be satisfied rapidly, and after that the success probability at each trial would always (not just often) be no less than a given value, due to the fixed-point property. In this way, we could expect that a target item would be found with the expected Oracle queries in the real optimal order, and fewer number of iterations than the existing trial-and-error algorithms could be cost. First, we give the following lemma.

Now, we are ready to describe the hybrid quantum search algorithm for the unknown λ (the corresponding flow diagram is shown in Fig. 1).

Fig. 1. Flow diagram of the hybrid fixed-point and trail-and-error quantum search algorithm.

By virtue of Lemma 1, we can obtain the lower bound of the success probability PLs, i.e., and further obtain the upper bound of the occurrence probability Qs, i.e., Then, based on Eqs. (21), (23)–(28) we can obtain where we have assumed that c < δ−2. Finally, from Eqs. (22), (28)–(30), and lcri ≫ logc lcri ≫ 1 for λ ≪ 1 − δ2, it follows that and numerical calculation shows that Therefore, the query complexity of our algorithm is in . In addition, we can see that δ = 0.5659 and c = 1.523 are just the optimal parameters minimizing the upper bound of the expected query complexity.

4. Discussion and conclusion

In this section, we first discuss the comparisons between our algorithm and the existing quantum search algorithms[27,32,33,4143] in the case of unknown λ and then give a brief conclusion. Table 1 lists the method, query complexity, and phase(s) of our algorithm and other algorithms. The main advantages of our algorithm are discussed in detail as follows.

Table 1.

Detailed comparisons between our algorithm and other algorithms.

.

Compared with the fixed-point quantum search algorithms,[32,33] as shown in Eq. (31) our algorithm indeed reaches the optimal scaling for quantum search, i.e., , while, references [32] and [33] do not. Reasons are in the following: First, for the original fixed-point quantum search algorithm,[32] to achieve a success probability no less than than 1 − δ2 (δ ∈ (0,1)) for an unknown λ with a known lower bound λ0, the number of required Oracle queries[35] is in yielding the loss of quadratic speedup over classical exhaustive search, which is in O(1/λ). Second, as shown in Eq. (13), the query complexity of Yoder’s algorithm[33] is in , which indeed achieves a quadratic speedup over the original fixed-point algorithm. However, for any λλ0, the same as Ref. [32], the least number of iterations of Yoder’s algorithm is fixed. For example, if λ0 = 1/N, while λ = (N − 1)/N ≈ 1, then a target item could almost be found by performing the classical search once, but the complexity of Yoder’s algorithm is still in . Therefore, Yoder’s algorithm does not achieve the quadratic speedup over classical search. Note that, this advantage of our algorithm comes from the use of trial-and-error method.

Compared with the trial-and-error quantum search algorithms,[27,4143] first, with respect to the method, our algorithm does not contain randomness (i.e., random selection of the number of iterations), and enables the success probability always no less than an arbitrary given lower bound between 0 and 1 after the number of iterations exceeds the critical value (i.e., lcri defined by Eq. (20)). While, the existing randomized trial-and-error algorithms[27,41,42] rely on the randomness, and the existing deterministic trial-and-error algorithm[43] can only makes the success probability often (but not always) no less than a lower bound, fixed at 3/4. Second, with respect to the query/iteration complexity, compared with the existing deterministic trial-and-error algorithm,[43] our query complexity can be reduced by (8.378 − 5.643) / 8.378 ≈ 1/3. Although, the upper bound of query complexity of our algorithm displayed in Table 1 is slightly higher than Boyer’s randomized algorithm[27] (about 5.643/4 ≈ 1.4 times), however, in the derivation of query complexity, we have adopted the viewpoint in Ref. [33] that one Grover iteration with arbitrary phases queries two standard quantum Oracle (denoted by ) with phase-π, which flips the ancilla qubit when the input is the target state, i.e., Therefore, in fact, our algorithm has fewer number of iterations, about 1 − (5.643/2)/4 ≈ 30% can be saved than Ref. [27]. This advantage comes from the use of fixed-point method in our algorithm.

Finally, it is worth mentioning that, for the quantum Oracle with arbitrary phases (i.e., , defined by Eq. (5)), Yoder et al. designed a feasible quantum circuit, including two standard quantum Oracle with phase-π, which appears to show that the complexity of is twice that of . However, we have noticed that in many practical applications of quantum search, e.g., key search in classical cryptography,[4749] the satisfiability problem,[50,51] quantum machine learning,[52] etc., the design of the standard quantum Oracle contains a quantization (denoted by Qf) of the classical Oracle and the corresponding un-computation step (denoted by ) which restores the ancillary qubits to their initial state,[53] as shown in Fig. 2. Therefore, the complexity of is twice that of Qf, also as pointed in Ref. [54]. What is more, based on this, we can find out that follow the circuit of in Ref. [33], as depicted in Fig. 2, the in the first and the Qf in the second could be omitted because they offset each other ( ). Therefore, the complexity of quantum Oracle with arbitrary phases would also be twice that of Qf, which is the same as that of the standard Oracle . In this case, our algorithm will has the least query complexity among the current algorithms for the unknown λ.[27,32,33,4143] While, this conclusion may be related to the specific application scenario of the algorithms, and more rigorous proofs can be studied further in the future.

Fig. 2. Circuit for the quantum Oracle with arbitrary phases, defined by Eq. (5), where denotes the quantum Oracle with phase-π (defined by Eq. (33)), Qf is the quantization of the classical Oracle, corresponds to the un-computation step to restore the ancillary qubits, and is the quantum gate adding a phase of eiφ to |1⟩ state.

In summary, we have presented the first quantum search algorithm hybridizing the fixed-point method with the trial-and-error method for the unknown λ, which integrates the advantages of both methods and solves the non-optimal problem of the “optimal” fixed-point algorithm[33] and the problem that the deterministic trial-and-error algorithm[43] requires more than 1 times queries or iterations than the randomized versions. In our algorithm, the Yoder’s sequence[33] is conducted multiple trials, and the number of iterations increases exponentially along with the number of trials. The upper bound of expected queries of our algorithm to find a target item was derived, as well as the optimal parameters, which minimize the query complexity. Our study reconfirms the practicality of the fixed-point method, and shows that it is very advantageous to hybridize the trial-and-error method and the fixed-point method, which provides a different approach for the research on quantum search algorithms and can be applied to a variety of scenarios where Grover’s search is used.[4752]

Reference
[1] Grover L K 1996 Proceedings of the Twenty-eighth Annual ACM Symposium on Theory of Computing New York 212 219 https://doi.org/10.1145/237814.237866
[2] Grover L K 1997 Phys. Rev. Lett. 79 325
[3] Biron D Biham O Biham E Grassl M Lidar D A 1999 Quantum Computing and Quantum Communications Berlin Springer 140 147 https://doi.org/10.1007/3-540-49208-9_10
[4] Long G L Li Y S Zhang W L Niu L 1999 Phys. Lett. 262 27
[5] Long G L 2001 Phys. Rev. 64 022307
[6] Long G L Li X Sun Y 2002 Phys. Lett. 294 143
[7] Li P C Li S Y 2007 Phys. Lett. 366 42
[8] Zhang Y Y Hu H P Lu S F 2011 Chin. Phys. 20 040309
[9] Sun J Lu S F Liu F Yang L P 2012 Chin. Phys. 21 010306
[10] Li F G Bao W S Zhang S Wang X Huang H L Li T Ma B W 2018 Chin. Phys. 27 10308
[11] Toyama F M Dijk W V Nogami Y Tabuchi M Kimura Y 2008 Phys. Rev. 77 042324
[12] Toyama F M Kasai S Dijk W V Nogami Y 2009 Phys. Rev. 79 014301
[13] Toyama F M Dijk W V Nogami Y 2013 Quantum Inf. Process. 12 1897
[14] Toyama F M Dijk W V 2019 Can. J. Phys. 97 777
[15] Zhong P C Bao W S Wei Y 2009 Chinese Phys. Lett. 26 020301
[16] Giri P R Korepin V E 2017 Quantum Inf. Process. 16 315
[17] Zhang K Korepin V E 2018 Quantum Inf. Process. 17 143
[18] Mehri-Dehnavi H Dashtianeh H Kuchaksaraei H Y Khoshdareh M M Movahhedian H Rahimi R 2018 Int. J. Theor. Phys. 57 3668
[19] Byrnes T Forster G Tessler L 2018 Phys. Rev. Lett. 120 060501
[20] Ma B W Bao W S Li T Li F G Zhang S Fu X Q 2017 Chin. Phys. Lett. 34 070305
[21] Li T Bao W S Lin W Q Zhang H Fu X Q 2014 Chin. Phys. Lett. 31 050301
[22] Li T Bao W S Huang H L Li F G Fu X Q Zhang S Guo C Du Y T Wang X Lin J 2018 Phys. Rev. 98 062308
[23] Li T Fu X Q Wang Y Zhang S Wang X Du Y T Bao W S 2019 arXiv: 1908.00269 [quant-ph] https://arxiv.org/abs/1908.00269
[24] Pan M H Qiu D W 2019 Phys. Rev. 100 012349
[25] Pan M H Qiu D W Mateus P Gruska J 2019 Theor. Comput. Sci. 773 138
[26] Bennett C H Bernstein E Brassard G Vazirani U 1997 SIAM J. Comput. 26 1510
[27] Boyer M Brassard G Høyer P Tapp A 1998 Fortschr. Phys. 46 493
[28] Zalka C 1999 Phys. Rev. 60 2746
[29] Nielson M A Chuang I L 2000 Quantum Computation and Quantum Information Cambridge Cambridge University Press 269 271
[30] Grover L K Radhakrishnan J 2005 Proceedings of the Seventeenth Annual ACM Symposium on Parallelism in Algorithms and Architectures New York 186 194 https://doi.org/10.1145/1073970.1073997
[31] Brassard G 1997 Science 275 627
[32] Grover L K 2005 Phys. Rev. Lett. 95 150501
[33] Yoder T J Low G H Chuang I L 2014 Phys. Rev. Lett. 113 210501
[34] Chakraborty S Radhakrishnan J Raghunathan N 2005 Approximation, Randomization and Combinatorial Optimization. Algorithms and Techniques Berlin Springer 245 256 https://doi.org/10.1007/11538462_21
[35] Tulsi T Grover L K Patel A 2006 Quantum Inf. Comput. 6 483
[36] Bhole G Anjusha V S Mahesh T S 2016 Phys. Rev. 93 042339
[37] Gurnani K Behera B K Panigrahi P K 2017 arXiv: 1712.10231 [quant-ph] https://arxiv.org/abs/1712.10231
[38] Dalzell A M Yoder T J Chuang I L 2017 Phys. Rev. 95 012311
[39] Qiu D W Zheng S G 2018 Phys. Rev. 97 062331
[40] Cai G Y Qiu D W 2018 J. Comput. Syst. Sci. 97 83
[41] Younes A Rowe J Miller J 2008 Physica 237 1074
[42] Younes A 2013 Appl. Math. Inf. Sci. 7 93
[43] Okamoto K Watanabe O 2001 Computing and Combinatorics Berlin Springer 493 501 https://doi.org/10.1007/3-540-44679-6_55
[44] Younes A Rowe J Miller J 2004 AIP Conf. Proc. 734 171
[45] Brassard G Høyer P Mosca M Tapp A 2002 Quantum Computation and Information Providence American Mathematical Society 53 74
[46] Mason J C Handscomb D C 2002 Chebyshev Polynomials Boca Raton CRC Press 2 3
[47] Grassl M Langenberg B Roetteler M Steinwandt R 2016 Post-Quantum Cryptography Switzerland Springer 29 43 https://link.springer.com/10.1007/978-3-319-29360-8_3
[48] Kim P Han D Jeong K C 2018 Quantum Inf. Process. 17 339
[49] Denisenko D V Nikitenkova M V 2019 J. Exp. Theor. Phys. 128 25
[50] Cheng S T Tao M H 2007 J. Comput. Syst. Sci. 73 123
[51] Yang W L Wei H Zhou F Chang W L Feng M 2009 J. Phys. B: At. Mol. Opt. Phys. 42 145503
[52] Lee B Perkowski M 2016 Euromicro Conference on Digital System Design (DSD) Cyprus IEEE 413 422 https://doi.org/10.1109/DSD.2016.30
[53] Matuschak A and Nielsen M A https://quantum.country/search [Accessed: 15 September 2019] https://quantum.country/search
[54] Chailloux A Naya-Plasencia M Schrottenloher A 2017 Advances in Cryptology --- ASIACRYPT 2017 Cham Springer 211 240 https://link.springer.com/chapter/10.1007/978-3-319-70697-9_8